import Request from '@/utils/requset.js'
import { queryParams } from '@/uni_modules/uv-ui-tools/libs/function/index.js'

let request = new Request().http
let uploadFile = new Request().upLoadFile
//全局定义请求头
export default {


	
    // 获取openid 
    getOpenid:(data)=>{
    	return request({url:`/api/user/getopenid/`,method:"post",data})
    },
    
    // 获取openid
    wxPay:(data)=>{
    	return request({url:`/pk/mgcall/test_wc_pay`,method:"post",data})
    },
        
    login:(data)=>{
        return request({url:`/pk/mgcall/log_in_code`,method:"post",data,nologin:true})
    },
    getPhone:(data)=>{
        return request({url:`/pk/mgcall/get_phone_number`,method:"post",data})
    },
    fortuneDay:(data)=>{
        return request({url:`/pk/mgcall/fortune_day`,method:"post",data})
    },
    tarotDay:(data)=>{
        return request({url:`/pk/mgcall/tarot_day`,method:"post",data})
    },
    moonPose:(data)=>{
        return request({url:`/pk/mgcall/moon_pose`,method:"post",data})
    },
    questionConfirm:(data)=>{
        return request({url:`/pk/mgcall/question_confirm`,method:"post",data})
    },
    tarotInput:(data)=>{
        return request({url:`/pk/mgcall/tarot_input`,method:"post",data})
    },
    getUserInfo:(data)=>{
        return request({url:`/pk/mgcall/get_user_data`,method:"post",data})
    },
    updateUserInfo:(data)=>{
        return request({url:`/pk/mgcall/change_user_data`,method:"post",data})
    },
    vipType:(data)=>{
        return request({url:`/pk/mgcall/vip_type`,method:"post",data})
    },
    vipPay:(data)=>{
        return request({url:`/pk/mgcall/vip_pay`,method:"post",data})
    },
    aiChat:(data)=>{
        return request({url:`/pk/mgcall/tarot_ai_chat`,method:"post",data,hideLoading:true})
    },
    appData:(data)=>{
        return request({url:`/pk/mgcall/app_data`,method:"post",data,hideLoading:true,nologin:true})
    },
    exchangeCode:(data)=>{
        return request({url:`/pk/mgcall/exchange_vip_code`,method:"post",data,hideLoading:true})
    },
    getXy:(data)=>{
        return request({url:`/pk/mgcall/get_agreement`,method:"post",data,hideLoading:true,nologin:true})
    },
    getConfig:(data)=>{
        return request({url:`/pk/mgcall/get_page_rendering`,method:"post",data,hideLoading:true,nologin:true})
    },
    
    
    
    
      //oss文件上传
      uploadImg: (data) => {
        return uploadFile(data)
      },
    
	
	
	
	
	
	
	//我的
}
/*
请求样式：
    自定义名字: function(data) {
        return request({
            url: "/banner", //请求头
            method:"GET", //请求方式 
            data: data,    //请求数据
            token: token, // 可传  
            hideLoading: false, //加载样式
        })
    },
*/